package day03;

import java.util.Random;
import java.util.Scanner;

public class looptest4 {                            //猜数游戏
    public static void main(String[] args) {
        Random r = new Random();
        int num=r.nextInt(100)+1;
        while(true){
            Scanner sc = new Scanner(System.in);
            int temp=sc.nextInt();
            if(num==temp) {
                System.out.println("猜中了");
                break;
            }
            else if (num>temp) System.out.println("猜小了");
            else if (num<temp) System.out.println("猜大了");
        }
    }
}
